package net.zjitc.mapper;

import net.zjitc.pojo.Category;
import net.zjitc.pojo.Condition;
import net.zjitc.pojo.Product;

import java.util.List;

/**
 * @Author: KingCc
 * @Date: 2019/6/1 18:30
 */
public interface ProductMapper {
    List<Product> findAllProduct();

    List<Category> findAllCategory();

    int addProduct(Product product);

    Product findProductById(String id);

    int editProduct(Product product);

    int deleteProduct(String id);

    List<Product> searchByCondition(Condition condition);

    List<Product> findProductByCid(Integer cid);

    Category findCategoryById(Integer id);
}
